package gcb.metalsys.service.cop;

import gcb.metalsys.dto.cop.ChartDTO;
import gcb.metalsys.dto.cop.OrderDTO;
import gcb.metalsys.dto.cop.OrderStatementDTO;
import gcb.metalsys.entity.cop.CopOrder;
import com.baomidou.mybatisplus.extension.service.IService;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ${author}
 * @since 2019-12-31
 */
public interface CopOrderService extends IService<CopOrder> {

    List<Map<String, Object>>  selectOrderList(Long userId, String clientName, int pageNum, int pageSize);

    int countOrderList(Long userId,String clientName);

    List<OrderDTO> selectStatement(OrderStatementDTO orderStatementDTO);

    List<OrderDTO> selectRunningStatement(OrderStatementDTO orderStatementDTO);

    List<ChartDTO> countSaleProductSize(int status,LocalDateTime time);

    List<ChartDTO> countSalePrice(int status,LocalDateTime time);

    List<ChartDTO> countClientBuy(int status,LocalDateTime time);

    List<ChartDTO> countClientGen(int status,LocalDateTime time);

}
